/*
 * @Author: wuyuxin
 * @Date: 2024-07-17 14:44:46
 * @LastEditors: wuyuxin
 * @LastEditTime: 2024-09-18 17:14:29
 * @Description:
 */
import React, { Suspense } from 'react'
import { useRoutes } from 'react-router-dom'
import routes from './router'
import AppHeader from './components/app-header'
import AppFooter from './components/app-footer'

function App() {
  return (
    <div className="App">
      <AppHeader />
      <div className="main">
        <Suspense fallback="">{useRoutes(routes)}</Suspense>
      </div>
      <AppFooter />
    </div>
  )
}

export default App
